package com.imonsoft.common.httpModel;

public class Pager {
	public int page = 1;
	public int rows = 10;
	public String sort = "id";// 排序字段名
	public String order = "desc";// 按什么排序(asc,desc)
	private String q = "";// datagrid的查询字段

	private int skipResults;

	public int getSkipResults() {
		this.skipResults = (page - 1) * rows;
		return skipResults;
	}

	public void setSkipResults(int skipResults) {
		this.skipResults = skipResults;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getQ() {
		return q;
	}

	public void setQ(String q) {
		this.q = q;
	}
}
